<?php require_once('auth.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="/calendar/includes/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="/calendar/includes/thickbox.css" type="text/css" media="screen" />
<!--[if IE]> 
<link rel="stylesheet" href="/calendar/includes/style-ie.css" type="text/css" media="screen" /> 
<![endif]-->
<script type="text/javascript" src="/calendar/includes/jquery.js"></script>
<script type="text/javascript" src="/calendar/includes/thickbox.js"></script>
<title><?php echo make_title($title); ?></title>
</head>
<body>
<?php if ($_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest') { ?>
<div class='content'> 
<div class='header'>
	<div class='sitename'>
		<div class='gwlogo'><img src='/calendar/gwlogo.jpg' height='35' width='51' /></div>
		<h1><a href='/calendar/'>Colonial Calendar</a><span class='beta'>beta</span></h1>
	</div>
	<?php if (is_logged_in()) { 
	$user = get_user($_SESSION['UserID']); ?>
	<div class='logout'>
		Logged in as <?php echo $user['email']; ?> | <a href='/calendar/logout/'>Logout</a>
	</div>
	<?php } ?>
	<div class='clear'> </div>
</div>
<?php } ?>
<div class='main'>
<?php if ($_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest') { ?>
<h2><?php echo $title; ?></h2>
<?php } ?>
